#include <iostream>
#include <time.h>
std::string GetTime()
{
    time_t t = time(nullptr);
    struct tm* t1 = localtime(&t);
    char buff[48];
    snprintf(buff,sizeof(buff),"%d-%d-%d %d:%d:%d",t1->tm_year+1900,t1->tm_mon,t1->tm_mday,t1->tm_hour,t1->tm_min,t1->tm_sec);
    return std::string(buff);
}